package com.blog.utils;

import java.util.UUID;

/**
 * @author admin
 * @version 1.0 <br/>
 * <p style="font-family:SimSun;font-weight:bold">时间:<br/>2021/12/5 20:36</p>
 * @description
 */
public class GetSalt {
    public static String getSalt() {
        UUID uuid = UUID.randomUUID();
        StringBuilder salt = new StringBuilder();
        return salt.append(uuid).substring(2, 8);
    }
}
